package com.gph.saviorframework.fastdfs.monitor.service;

import com.gph.saviorframework.fastdfs.monitor.model.DownloadFileRecord;
import com.gph.saviorframework.fastdfs.monitor.model.FdfsFile;

import java.util.List;

/**
 * Created by root on 16-6-25.
 */
public interface FileDataService {

    /**
     * getFileListByGroupName
     * @param groupName
     * @return
     */
    List<FdfsFile> getFileListByGroupName(String groupName);

    /**
     * 根据ip和fileId去数据库中查找是否存在DownloadFileRecord对象
     * @param ip
     * @param fileId
     * @return
     */
    DownloadFileRecord getDownloadFileRecordByIpAndFileId(String ip, String fileId);

    //保存 DownloadFileRecord对象
    void saveDownloadFileRecord(DownloadFileRecord downloadFileRecord);
}
